# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

grayscale = [
    [0, 0, 0],
    [255, 255, 255]
]

oceanography = [
    [2, 3, 206],
    [143, 226, 255],
    [255, 255, 255],
    [255, 241, 27],
    [253, 0, 0]
]

rainbow = [
    [125, 0, 255],
    [0, 0, 255],
    [0, 255, 0],
    [255, 255, 0],
    [255, 125, 0],
    [255, 0, 0]
]

anomaly = [
    [129, 31, 240],
    [124, 30, 240],
    [119, 29, 241],
    [114, 27, 242],
    [108, 26, 242],
    [103, 24, 243],
    [97, 23, 244],
    [91, 21, 245],
    [86, 20, 245],
    [80, 18, 246],
    [73, 17, 247],
    [67, 15, 247],
    [61, 14, 248],
    [55, 12, 249],
    [48, 11, 250],
    [42, 9, 250],
    [35, 7, 251],
    [28, 6, 252],
    [21, 4, 252],
    [14, 3, 253],
    [7, 1, 254],
    [0, 0, 255],
    [3, 6, 253],
    [6, 12, 252],
    [10, 18, 250],
    [13, 24, 249],
    [17, 30, 247],
    [20, 36, 246],
    [23, 42, 245],
    [26, 47, 243],
    [29, 52, 242],
    [33, 57, 240],
    [36, 62, 239],
    [39, 67, 237],
    [42, 72, 236],
    [45, 76, 235],
    [48, 81, 233],
    [51, 85, 232],
    [53, 89, 230],
    [56, 93, 229],
    [59, 97, 227],
    [62, 101, 226],
    [65, 105, 225],
    [63, 106, 226],
    [62, 107, 227],
    [60, 108, 229],
    [59, 110, 230],
    [57, 111, 232],
    [56, 113, 233],
    [54, 115, 235],
    [52, 116, 236],
    [51, 118, 237],
    [49, 120, 239],
    [47, 122, 240],
    [46, 123, 242],
    [44, 125, 243],
    [42, 127, 245],
    [41, 130, 246],
    [39, 132, 247],
    [37, 134, 249],
    [35, 136, 250],
    [33, 139, 252],
    [31, 141, 253],
    [29, 144, 255],
    [28, 145, 255],
    [27, 147, 255],
    [25, 149, 255],
    [24, 151, 255],
    [22, 153, 255],
    [21, 155, 255],
    [19, 158, 255],
    [18, 160, 255],
    [17, 162, 255],
    [15, 164, 255],
    [14, 166, 255],
    [12, 169, 255],
    [11, 171, 255],
    [9, 173, 255],
    [8, 176, 255],
    [7, 178, 255],
    [5, 180, 255],
    [4, 183, 255],
    [2, 185, 255],
    [1, 188, 255],
    [0, 191, 255],
    [7, 191, 254],
    [14, 191, 253],
    [21, 191, 252],
    [28, 191, 251],
    [35, 192, 251],
    [41, 192, 250],
    [48, 193, 249],
    [55, 193, 248],
    [62, 194, 248],
    [69, 194, 247],
    [75, 195, 246],
    [82, 196, 245],
    [88, 196, 245],
    [95, 197, 244],
    [101, 198, 243],
    [108, 199, 242],
    [114, 200, 242],
    [121, 201, 241],
    [127, 202, 240],
    [133, 203, 239],
    [140, 205, 239],
    [143, 206, 239],
    [146, 208, 239],
    [149, 209, 240],
    [152, 211, 240],
    [155, 212, 241],
    [158, 214, 241],
    [161, 215, 242],
    [164, 217, 242],
    [168, 218, 243],
    [171, 220, 243],
    [174, 221, 244],
    [177, 222, 244],
    [180, 224, 245],
    [184, 225, 245],
    [187, 227, 246],
    [190, 228, 246],
    [193, 230, 247],
    [197, 231, 247],
    [200, 233, 248],
    [203, 234, 248],
    [207, 236, 249],
    [255, 255, 200],
    [255, 254, 192],
    [255, 254, 185],
    [255, 253, 178],
    [255, 252, 171],
    [255, 251, 164],
    [255, 250, 157],
    [255, 249, 149],
    [255, 248, 142],
    [255, 247, 135],
    [255, 246, 128],
    [255, 244, 121],
    [255, 243, 114],
    [255, 241, 107],
    [255, 239, 99],
    [255, 238, 92],
    [255, 236, 85],
    [255, 234, 78],
    [255, 231, 71],
    [255, 229, 64],
    [255, 227, 57],
    [255, 225, 49],
    [255, 222, 47],
    [255, 220, 45],
    [255, 218, 42],
    [255, 215, 40],
    [255, 213, 38],
    [255, 211, 35],
    [255, 208, 33],
    [255, 206, 30],
    [255, 203, 28],
    [255, 201, 26],
    [255, 198, 23],
    [255, 195, 21],
    [255, 193, 19],
    [255, 190, 16],
    [255, 187, 14],
    [255, 184, 11],
    [255, 181, 9],
    [255, 179, 7],
    [255, 176, 4],
    [255, 173, 2],
    [255, 170, 0],
    [255, 167, 0],
    [255, 164, 0],
    [255, 161, 0],
    [255, 158, 0],
    [255, 155, 0],
    [255, 152, 0],
    [255, 149, 0],
    [255, 147, 0],
    [255, 144, 0],
    [255, 141, 0],
    [255, 138, 0],
    [255, 135, 0],
    [255, 132, 0],
    [255, 129, 0],
    [255, 127, 0],
    [255, 124, 0],
    [255, 121, 0],
    [255, 118, 0],
    [255, 115, 0],
    [255, 112, 0],
    [255, 110, 0],
    [255, 104, 0],
    [255, 99, 0],
    [255, 94, 0],
    [255, 89, 0],
    [255, 83, 0],
    [255, 78, 0],
    [255, 73, 0],
    [255, 68, 0],
    [255, 62, 0],
    [255, 57, 0],
    [255, 52, 0],
    [255, 47, 0],
    [255, 41, 0],
    [255, 36, 0],
    [255, 31, 0],
    [255, 26, 0],
    [255, 20, 0],
    [255, 15, 0],
    [255, 10, 0],
    [255, 5, 0],
    [255, 0, 0],
    [252, 0, 0],
    [249, 0, 0],
    [247, 0, 0],
    [244, 0, 0],
    [241, 0, 0],
    [239, 0, 0],
    [236, 0, 0],
    [234, 0, 0],
    [231, 0, 0],
    [228, 0, 0],
    [226, 0, 0],
    [223, 0, 0],
    [220, 0, 0],
    [218, 0, 0],
    [215, 0, 0],
    [213, 0, 0],
    [210, 0, 0],
    [207, 0, 0],
    [205, 0, 0],
    [202, 0, 0],
    [200, 0, 0],
    [202, 6, 6],
    [205, 13, 13],
    [207, 20, 20],
    [210, 27, 27],
    [213, 35, 35],
    [215, 43, 43],
    [218, 50, 50],
    [220, 58, 58],
    [223, 66, 66],
    [226, 75, 75],
    [228, 83, 83],
    [231, 92, 92],
    [234, 101, 101],
    [236, 110, 110],
    [239, 119, 119],
    [241, 128, 128],
    [244, 138, 138],
    [247, 147, 147],
    [249, 157, 157],
    [252, 167, 167],
    [255, 178, 178]
]

hottemp = [
    [255, 255, 255],
    [255, 255, 0],
    [255, 0, 0],
    [0, 0, 0],
    [0, 0, 0]
]

anomaly2 = [
    [129, 31, 240],
    [124, 30, 240],
    [119, 29, 241],
    [114, 27, 242],
    [108, 26, 242],
    [103, 24, 243],
    [97, 23, 244],
    [91, 21, 245],
    [86, 20, 245],
    [80, 18, 246],
    [73, 17, 247],
    [67, 15, 247],
    [61, 14, 248],
    [55, 12, 249],
    [48, 11, 250],
    [42, 9, 250],
    [35, 7, 251],
    [28, 6, 252],
    [21, 4, 252],
    [14, 3, 253],
    [7, 1, 254],
    [0, 0, 255],
    [3, 6, 253],
    [6, 12, 252],
    [10, 18, 250],
    [13, 24, 249],
    [17, 30, 247],
    [20, 36, 246],
    [23, 42, 245],
    [26, 47, 243],
    [29, 52, 242],
    [33, 57, 240],
    [36, 62, 239],
    [39, 67, 237],
    [42, 72, 236],
    [45, 76, 235],
    [48, 81, 233],
    [51, 85, 232],
    [53, 89, 230],
    [56, 93, 229],
    [59, 97, 227],
    [62, 101, 226],
    [65, 105, 225],
    [63, 106, 226],
    [62, 107, 227],
    [60, 108, 229],
    [59, 110, 230],
    [57, 111, 232],
    [56, 113, 233],
    [54, 115, 235],
    [52, 116, 236],
    [51, 118, 237],
    [49, 120, 239],
    [47, 122, 240],
    [46, 123, 242],
    [44, 125, 243],
    [42, 127, 245],
    [41, 130, 246],
    [39, 132, 247],
    [37, 134, 249],
    [35, 136, 250],
    [33, 139, 252],
    [31, 141, 253],
    [29, 144, 255],
    [28, 145, 255],
    [27, 147, 255],
    [25, 149, 255],
    [24, 151, 255],
    [22, 153, 255],
    [21, 155, 255],
    [19, 158, 255],
    [18, 160, 255],
    [17, 162, 255],
    [15, 164, 255],
    [14, 166, 255],
    [12, 169, 255],
    [11, 171, 255],
    [9, 173, 255],
    [8, 176, 255],
    [7, 178, 255],
    [5, 180, 255],
    [4, 183, 255],
    [2, 185, 255],
    [1, 188, 255],
    [0, 191, 255],
    [7, 191, 254],
    [14, 191, 253],
    [21, 191, 252],
    [28, 191, 251],
    [35, 192, 251],
    [41, 192, 250],
    [48, 193, 249],
    [55, 193, 248],
    [62, 194, 248],
    [69, 194, 247],
    [75, 195, 246],
    [82, 196, 245],
    [88, 196, 245],
    [95, 197, 244],
    [101, 198, 243],
    [108, 199, 242],
    [114, 200, 242],
    [121, 201, 241],
    [127, 202, 240],
    [133, 203, 239],
    [140, 205, 239],
    [143, 206, 239],
    [146, 208, 239],
    [149, 209, 240],
    [152, 211, 240],
    [155, 212, 241],
    [158, 214, 241],
    [161, 215, 242],
    [164, 217, 242],
    [168, 218, 243],
    [171, 220, 243],
    [174, 221, 244],
    [177, 222, 244],
    [180, 224, 245],
    [184, 225, 245],
    [187, 227, 246],
    [190, 228, 246],
    [193, 230, 247],
    [197, 231, 247],
    [200, 233, 248],
    [203, 234, 248],
    [207, 236, 249],
    [255, 255, 255],
    [255, 255, 255],
    [255, 255, 200],
    [255, 254, 192],
    [255, 254, 185],
    [255, 253, 178],
    [255, 252, 171],
    [255, 251, 164],
    [255, 250, 157],
    [255, 249, 149],
    [255, 248, 142],
    [255, 247, 135],
    [255, 246, 128],
    [255, 244, 121],
    [255, 243, 114],
    [255, 241, 107],
    [255, 239, 99],
    [255, 238, 92],
    [255, 236, 85],
    [255, 234, 78],
    [255, 231, 71],
    [255, 229, 64],
    [255, 227, 57],
    [255, 225, 49],
    [255, 222, 47],
    [255, 220, 45],
    [255, 218, 42],
    [255, 215, 40],
    [255, 213, 38],
    [255, 211, 35],
    [255, 208, 33],
    [255, 206, 30],
    [255, 203, 28],
    [255, 201, 26],
    [255, 198, 23],
    [255, 195, 21],
    [255, 193, 19],
    [255, 190, 16],
    [255, 187, 14],
    [255, 184, 11],
    [255, 181, 9],
    [255, 179, 7],
    [255, 176, 4],
    [255, 173, 2],
    [255, 170, 0],
    [255, 167, 0],
    [255, 164, 0],
    [255, 161, 0],
    [255, 158, 0],
    [255, 155, 0],
    [255, 152, 0],
    [255, 149, 0],
    [255, 147, 0],
    [255, 144, 0],
    [255, 141, 0],
    [255, 138, 0],
    [255, 135, 0],
    [255, 132, 0],
    [255, 129, 0],
    [255, 127, 0],
    [255, 124, 0],
    [255, 121, 0],
    [255, 118, 0],
    [255, 115, 0],
    [255, 112, 0],
    [255, 110, 0],
    [255, 104, 0],
    [255, 99, 0],
    [255, 94, 0],
    [255, 89, 0],
    [255, 83, 0],
    [255, 78, 0],
    [255, 73, 0],
    [255, 68, 0],
    [255, 62, 0],
    [255, 57, 0],
    [255, 52, 0],
    [255, 47, 0],
    [255, 41, 0],
    [255, 36, 0],
    [255, 31, 0],
    [255, 26, 0],
    [255, 20, 0],
    [255, 15, 0],
    [255, 10, 0],
    [255, 5, 0],
    [255, 0, 0],
    [252, 0, 0],
    [249, 0, 0],
    [247, 0, 0],
    [244, 0, 0],
    [241, 0, 0],
    [239, 0, 0],
    [236, 0, 0],
    [234, 0, 0],
    [231, 0, 0],
    [228, 0, 0],
    [226, 0, 0],
    [223, 0, 0],
    [220, 0, 0],
    [218, 0, 0],
    [215, 0, 0],
    [213, 0, 0],
    [210, 0, 0],
    [207, 0, 0],
    [205, 0, 0],
    [202, 0, 0],
    [200, 0, 0],
    [200, 6, 6]
]

smap = [
    [125, 0, 255],
    [0, 0, 255],
    [0, 255, 0],
    [255, 255, 0],
    [255, 125, 0],
    [255, 0, 0]
]
